package cn.ibobo.lease.admin.service;

import cn.ibobo.lease.common.base.BaseService;
import cn.ibobo.lease.common.dto.ResLeaseDTO;
import org.springframework.transaction.annotation.Transactional;

/**
 * 物品租赁表业务处理接口
 * @Author lililiang
 * @Date 2018-12-13 18:36:40
 */
public interface ResLeaseService extends BaseService<ResLeaseDTO, String> {

    /**
     * @Description 物品租赁
     * @Author lililiang
     * @Date 2018/12/23 11:26
     * @Param [entityDTO]
     * @Return java.lang.Integer
     */
    Integer lease(ResLeaseDTO entityDTO);

    /**
     * @Description 物品归还
     * @Author lililiang
     * @Date 2018/12/23 11:26
     * @Param [entityDTO]
     * @Return java.lang.Integer
     */
    Integer back(ResLeaseDTO entityDTO);

    /**
     * @Description 查询租赁费用（归还前使用）
     * @Author lililiang
     * @Date 2019/2/15 20:33
     * @Param [id]
     * @Return cn.ibobo.lease.common.dto.ResLeaseDTO
     */
    ResLeaseDTO queryCost(String id);
}
